import { createRouter, createWebHistory } from 'vue-router';
import { middleware,routes } from './middleware.ts';
const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes,
});

router.beforeEach(middleware);

export default router;
